﻿//  Copyright (c) 2011 Ray Liang (http://www.dotnetage.com)
//  Licensed MIT: http://www.opensource.org/licenses/mit-license.php

using System.ComponentModel.DataAnnotations;

namespace DNA.Mvc
{
    [Table("dna_PermsInRoles")]
    public class PermissionRole
    {
        [Key,Column(Order=1)]
        public int PermID { get; set; }

        [Key,Column(Order=2)]
        public string RoleName { get; set; }
        
        [ForeignKey("PermID")]
        public virtual Permission Permission { get; set; }
    }
}
